package com.wx.md.controller;

import com.baomidou.mybatisplus.extension.api.R;
import com.wx.md.service.SysPermissionService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Api(value = "系统管理-日志管理",tags = "日志管理相关接口")
@RestController
@RequestMapping("/menu")
public class MenusController {

    @Autowired
    SysPermissionService sysPermissionService;

    /**
     * 登陆
     * @return
     */
    @GetMapping("/getMenusTree")
    public R getMenusTree(){
        // 查询用户拥有的权限菜单列表
       // List<PermissionRespNodeVo> permissionRespNodeVos = sysPermissionService.permissionTreeListByUserId(sysUser.getId());
        return R.ok("");
    }

    /**
     * 登陆
     * @return
     */
    @GetMapping("/getPermissions")
    public R getPermissions(){
        //return loginService.login(loginReqVo);
        return R.ok("");
    }


}
